package xyz.xpman.prisonerfitness.adapter;

import android.app.Activity;
import android.os.Build;
import android.view.View;

import androidx.annotation.RequiresApi;

import org.jetbrains.annotations.NotNull;

import java.util.List;

import xyz.xpman.prisonerfitness.R;
import xyz.xpman.prisonerfitness.entity.TrainingRecord;

@SuppressWarnings("unused")
@RequiresApi(api = Build.VERSION_CODES.O)
public class TrainingRecordSimpleAdapter extends MyBaseAdapter<TrainingRecord, TrainingRecordSimpleCache> {

    public TrainingRecordSimpleAdapter(@NotNull Activity context, int templateId, @NotNull List<TrainingRecord> items){
        super(context, templateId, items);
    }


    @Override
    protected TrainingRecordSimpleCache processViewCache(View viewCache) {
        return new TrainingRecordSimpleCache(
                viewCache.findViewById(R.id.sequence),
                viewCache.findViewById(R.id.title),
                viewCache.findViewById(R.id.training_standard));
    }

}
